<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>edit</title>
</head>
<body>
<form action="StaffAction_update" method="post" >
	
	<table>
		<tr>
			<td>所属部门:</td>
			<td>
				<select name="department.did">
				<s:forEach items="${departmentList }" var="d">
					<option value="${d.did }" <s:if test="${d.did==staff.department.did }">selected</s:if>>${d.dname }</option> 
				</s:forEach>
				</select>
			</td>
		</tr>
		
		<tr>
			<td><input type="hidden" value="${staff.sid }"  name="sid"></td>
		</tr>
		
		<tr>
			<td>员工姓名:</td>
			<td><input value="${staff.sname }" name="sname"></td>
		</tr>
		<tr>
			<td>员工编号:</td>
			<td><input value="${staff.snumber }" name="snumber"></td>
		</tr>
		<tr>
			<td>员工邮箱:</td>
			<td><input value="${staff.semail }" name="semail"></td>
		</tr>
		<tr>
			<td>入职日期:</td>
			<td><input value="${staff.sdate }" name="sdate"></td>
		</tr>
		<tr>
			<td>员工电话:</td>
			<td><input value="${staff.sphone }" name="sphone"></td>
		</tr>
		<tr>
			<td>员工性别:</td>
			<td><input value="${staff.ssex }" name="ssex"></td>
		</tr>
		<tr>
			<td>员工状态:</td>
			<td><input value="${staff.sstatus }" name="sstatus"></td>
		</tr>
		<tr>
			<td><input type="submit" value="保存"></td>
			<td><input type="button" value="取消"></td>
		</tr>
	</table>
</form>

</body>
</html>